﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/DialogPage.Master" AutoEventWireup="true" CodeBehind="SelectContractSubItemInstrument.aspx.cs" Inherits="Runda.CMS.Portal.ContractManage.SelectContractSubItemInstrument" %>

<%@ Register Assembly="RadTreeView.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" type="text/css" href="../Content/global.css" />
    <link rel="stylesheet" type="text/css" href="../Content/Dialog/Dialogs.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

  <rad:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <rad:AjaxSetting AjaxControlID="btnQuery">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="InstrumentList" LoadingPanelID="AjaxLoadingPanel"/> 
                </UpdatedControls>
            </rad:AjaxSetting>
             <rad:AjaxSetting AjaxControlID="RadTreeView1">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="InstrumentList" LoadingPanelID="AjaxLoadingPanel"/> 
                </UpdatedControls>
            </rad:AjaxSetting>
        </AjaxSettings>
    </rad:RadAjaxManager>
    <rad:AjaxLoadingPanel runat="server" ID="AjaxLoadingPanel">
        <img src="../Images/Loading.gif" />数据载入...
    </rad:AjaxLoadingPanel>
    
   <table width="100%" cellspacing="0" cellpadding="0" height="100%">
            <tr>
                <td class="main">
                    <table width="100%" cellspacing="0" cellpadding="0" height="100%">
                        <colgroup>
                            <col width="150"> 
                            <col>
                        </colgroup>
                        <tr height="1"> 
                            <td>
                                <asp:TextBox ID="txtFilter" runat="server" CssClass="input"></asp:TextBox>
                            </td>
                            <td><asp:Button ID="btnQuery" runat="server" Text="查找" CssClass="button" 
                                    onclick="btnQuery_Click"/></td>
                        </tr> 
                        <tr>
                            <td colspan="2" class="wizBox1">
                                <div style="padding:0;margin:0;overflow: auto;float:left;width: 30%; height: 100%">                                
    <rad:RadTreeView ID="RadTreeView1" runat="server" onnodeclick="RadTreeView1_NodeClick" AutoPostBack="true"></rad:RadTreeView>
                                </div>
                                <div style="padding:0;margin:0;overflow: auto;float:left;width: 70%; height: 100%">
                                    <rad:RadGrid runat="server" ID="InstrumentList" Skin="OCM" AutoGenerateColumns="False" AllowSorting="True" GridLines="None">
                                        <MasterTableView DataKeyNames="instrumentGUID"> 
                                            <Columns>
                                                <rad:GridTemplateColumn HeaderText="选择">
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="cbxSelect" runat="server"/>
                                                        <asp:HiddenField ID="hidType" runat="server" Value='<%#Eval("Type") %>'/>
                                                    </ItemTemplate>
                                                </rad:GridTemplateColumn>
                                                <rad:GridBoundColumn DataField="InstrumentCode" HeaderText="编码"></rad:GridBoundColumn>
                                                <rad:GridBoundColumn DataField="InstrumentName" HeaderText="名称"></rad:GridBoundColumn>
                                                <rad:GridBoundColumn DataField="InstrumentStandard" HeaderText="规格"></rad:GridBoundColumn>
                                                <rad:GridBoundColumn DataField="unit" HeaderText="单位"></rad:GridBoundColumn>
                                                <rad:GridBoundColumn DataField="vendor" HeaderText="厂家"></rad:GridBoundColumn>                                                
                                                <%--<rad:GridBoundColumn DataField="Cost" HeaderText="成本"></rad:GridBoundColumn>--%>
                                                <rad:GridBoundColumn DataField="PresellPrice" HeaderText="指导价"></rad:GridBoundColumn>
                                            </Columns>
                                        </MasterTableView>
                                    </rad:RadGrid>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr height="40">
                <td class="buttons">
                    <asp:Button ID="btnOK" runat="server" Text="保 存" style="width: 70px;" 
                        onclick="btnOK_Click"/> 
                    <button style="width: 70px;" onclick="parent.window.close();" type="button">取 消</button>
                </td>
            </tr>
        </table>
    <asp:HiddenField ID="hidCustomerCode" runat="server" />
    <asp:HiddenField ID="hidCustomerID" runat="server" />
</asp:Content>
